package com.lagou.firstStageFourthModel.Fourth;

import java.io.Serializable;

/**
 * 用户消息类
 */
public class UserMessage implements Serializable {
    // 序列化的版本号 与序列化操作有关
    static final long serialVersionUID = 7818375828146090155L;

    private String type;
    private User user;

    public UserMessage() {
    }

    public UserMessage(String type, User user) {
        this.type = type;
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
